import request from "@/utils/request";

// 获取分类列表
export function CategoryGetGoodsList(id) {
  return request.get('/category', {
    params: {
      id
    }
  })
}

// 获取面包屑
export const CategoryGetFilter = (id) => {
  return request.get('category/sub/filter', {
    params: {
      id
    }
  })
}

// 获取子分类
/**
 * @description: 获取导航数据
 * @data {
     categoryId: 1005000 ,
     page: 1,
     pageSize: 20,
     sortField: 'publishTime' | 'orderNum' | 'evaluateNum'
   }
 * @return {*}
 */
export const CategoryGetSub = (data) => {
  return request.post('/category/goods/temporary', data)
}
